package cn.cs.mapper;

import cn.cs.pojo.AppOrderConcelcause;
import cn.cs.pojo.FaultType;
import cn.cs.pojo.ServiceType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface FaultTypeMapper {

	public List<AppOrderConcelcause> getConcelcause()throws Exception;

	public List<ServiceType> getFaultCategory()throws Exception;

	public List<FaultType> getTypeTree();

	public List<FaultType> getFaultType();

	public List<FaultType> getFaultTypeTree();

	public List<Map<String,Object>> getFaultTypeByPid(@Param(value = "id") String id);

	public List<FaultType> getTwoFaultCategory(@Param(value = "level") String level)throws Exception;

	public List<Map<String,Object>> getFaultTypeById(@Param(value = "parentId") String parentId)throws Exception;

	public List<FaultType> getFaultTypeListByMap(Map<String, Object> param)throws Exception;

	public Integer getFaultTypeCountByMap(Map<String, Object> param)throws Exception;

	public Integer insertFaultType(FaultType faultType)throws Exception;

	public Integer updateFaultType(FaultType faultType)throws Exception;

	public Integer deleteFaultTypeById(@Param(value = "id") String id)throws Exception;

	public Integer deleteServiceTypeById(@Param(value = "id") String id)throws Exception;

	public FaultType getFaultTypeByOnlyId(@Param(value = "id") String id)throws Exception;

	public List<Map<String,Object>> getFaultTypeByParentId(@Param(value = "parentId") String parentId)throws Exception;

	public List<ServiceType> getServiceTypeListByMap(Map<String, Object> param)throws Exception;

	public Integer getServiceTypeCountByMap(Map<String, Object> param)throws Exception;

	public Integer insertServiceType(ServiceType serviceType)throws Exception;

	public Integer updateServiceType(ServiceType serviceType)throws Exception;

	public FaultType getFaultTypeByIdOnlyOne(@Param(value = "id") String id)throws Exception;

	public List<ServiceType> getServiceTypeList();

	public List<FaultType> getFaultTypeEntityByParentId(Map<String, Object> param);

	public ServiceType getServiceTypeById(@Param(value = "id") String id)throws Exception;

}
